package itdep.common.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * @author Ivan Khalopik
 * @version $Revision: 4 $ $Date: 2010-06-10 13:13:16 +0000 (Thu, 10 Jun 2010) $
 */
public interface Entity<PK extends Serializable> extends Serializable {

	PK getId();

	boolean isNew();

	Date getDeletedAt();

	void setDeletedAt(Date deletedAt);

	boolean isDeleted();

	Set<Entity<?>> getChildren();
}
